﻿// -----------------------------------------------------------------------
// <copyright file="CacheManagerElement.cs" company="EPAM Systems">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Configuration.ConfigElements
{
	#region Usings

	using System.Configuration;

	#endregion

	/// <summary>
	/// Provides the cache manager element in config.
	/// </summary>
	public class CacheManagerElement : ConfigurationElement
	{
		/// <summary>
		/// Gets or sets the default time in cache.
		/// </summary>
		[ConfigurationProperty("defaultCacheTimeSeconds")]
		public int DefaultTimeInCacheSeconds 
		{
			get
			{
				return (int)this["defaultCacheTimeSeconds"];
			}

			set
			{
				this["defaultCacheTimeSeconds"] = value;
			}
		}
	}
}
